//*** Guidance generated code ***//
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.VisualStudio.TestTools.UnitTesting;

using ProjectBase.Core;
using ProjectBase.Mvc;

using $prjsn$.Common.Business.Services;

namespace $safeprojectname$.Services
{
    [TestClass]
    public class StoryNodeTest : EntityTestBase<IStoryNodeFacade>
    {
        #region Get
        [TestMethod]
        public void GetRootNodes_Passed()
        {
            var result = Facade.GetRootNodes();
            Assert.IsTrue(result.IsNotEmpty());
        }
        [TestMethod]
        public void GetNodeById_Passed()
        {
            var root = Facade.GetRootNodes();

            var result = Facade.GetNode(root.First().ID);
            Assert.IsTrue(result.Is());
        }
        [TestMethod]
        public void GetNodeById_HasText_Passed()
        {
            var root = Facade.GetRootNodes();

            var result = Facade.GetNode(root.First().ID);
            Assert.IsTrue(result.Text.IsNotEmpty());
        }
        #endregion Get

        #region Additional test attributes

        [ClassInitialize]
        public static void MyClassInitialize(TestContext testContext) { }

        [ClassCleanup]
        public static void MyClassCleanup() { }

        [TestInitialize]
        public override void MyTestInitialize() { base.MyTestInitialize(); }

        [TestCleanup]
        public override void MyTestCleanup() { base.MyTestCleanup(); }
        #endregion Additional test attributes
    }
}
